package com.etc.service.impl;

import com.etc.dao.ParkDao;
import com.etc.entity.Park;
import com.etc.entity.Room;
import com.etc.service.ParkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ParkServiceImpl implements ParkService {
    @Resource
    private ParkDao parkDao;

    @Override
    public List<Park> findAllPark() {
        return parkDao.findAllPark();
    }

    @Override
    public List<Park> findByAnyCondition(Map<String, Object> map) {
        return parkDao.findByAnyCondition(map);
    }

    @Override
    public Park findById(Integer id) {
        return parkDao.findById(id);
    }


}
